package com.zerotwo.exam.center;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 02
 * @version 1.0
 * @Date 2024/7/5
 * @Description
 */

@Configuration
@EnableAsync//表示开启异步化
@EnableScheduling //定时任务在启动类注解
@EnableFeignClients(basePackages= "com.zerotwo.exam.*")
@SpringBootApplication(scanBasePackages = "com.zerotwo.exam")
//扫描mapper
@MapperScan(basePackages = "com.zerotwo.exam.center.mapper")
public class ExamServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(ExamServiceApplication.class,args);
    }
}
